#include <cmath>
#include <iostream>
#include <string>

// 定义一个表示点的结构体
struct Point {
    int x;
    int y;
};

// 函数：计算两点之间的距离
double distance(const Point &p1, const Point &p2) {
    int dx = p2.x - p1.x;
    int dy = p2.y - p1.y;
    return std::sqrt(dx * dx + dy * dy);
}

int main() {
    // 声明两个 Point 类型的变量并初始化
    Point p1 = {1, 2};
    Point p2 = {4, 6};

    // 调用函数计算两点之间的距离
    double dist = distance(p1, p2);
    std::cout << "Distance between the two points: " << dist << std::endl;

    return 0;
}

